package ru.stepuk.modeller.generators;

import java.util.Random;

/**
 *
 * @author ivan
 */
public class DefaultJVMGenerator implements RandomNumberGenerator {

    private Random r;
    private int initialValue;

    public DefaultJVMGenerator(int initialValue) {
        this.initialValue = initialValue;
        r = new Random(initialValue);
    }

    public double nextValue() {
        return r.nextDouble();
    }

    public int getInitialValue() {
        return initialValue;
    }
}
